package com.sample.springbatch.scheduling.repository;

import com.sample.springbatch.scheduling.model.QuartzInfo;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by zwg on 2016/7/2.
 */
public interface QuartzInfoRepository extends PagingAndSortingRepository<QuartzInfo,Integer> {

    /**
     * 根据状态查询
     * @param status
     * @return
     */
    public List<QuartzInfo> findByStatusOrderByIdDesc(Integer status);

}
